package config

import (
	"encoding/json"
	"io/ioutil"
)

func (cm *Manager) loadJSON(filePath string) error {
	data, err := ioutil.ReadFile(filePath)
	if err != nil {
		return err
	}
	var parsedData interface{}
	err = json.Unmarshal(data, &parsedData)
	if err != nil {
		return err
	}
	cm.data["json"] = parsedData
	return nil
}
